package com.ityunhe.bean;

import java.sql.Timestamp;

/**
 * 订单实体类
 * @author Administrator
 */
public class Orders implements java.io.Serializable {

	private Integer oid;
	private Integer uid;
	private String goid;
	private Integer number;
	private String address;
	private Integer orderstatus;
	private Timestamp addtime;

	public Orders() {
	}

	
	public Timestamp getAddtime() {
		return addtime;
	}


	public void setAddtime(Timestamp addtime) {
		this.addtime = addtime;
	}
	

	public Orders(Integer uid, String goid, Integer number, String address, Integer orderstatus) {
		super();
		this.uid = uid;
		this.goid = goid;
		this.number = number;
		this.address = address;
		this.orderstatus = orderstatus;
	}


	public Orders(Integer oid, Integer uid, String goid, Integer number,
			String address, Integer orderstatus, Timestamp addtime) {
		super();
		this.oid = oid;
		this.uid = uid;
		this.goid = goid;
		this.number = number;
		this.address = address;
		this.orderstatus = orderstatus;
		this.addtime = addtime;
	}


	/**
	 * 获取订单编号 Integer oid 自增
	 * @param 
	 */
	public Integer getOid() {
		return this.oid;
	}
	/**
	 * 设置订单编号 Integer oid 自增
	 * @param oid
	 */
	public void setOid(Integer oid) {
		this.oid = oid;
	}
	/**
	 * 获取普通用户编号 Integer uid 外键
	 * @param 
	 */
	public Integer getUid() {
		return this.uid;
	}
	/**
	 * 设置普通用户编号 Integer uid 外键
	 * @param 
	 */
	public void setUid(Integer uid) {
		this.uid = uid;
	}
	/**
	 * 获取商品编号 String goid 组合
	 * @param 
	 */
	public String getGoid() {
		return this.goid;
	}
	/**
	 * 设置商品编号 String goid 组合
	 * @param goid
	 */
	public void setGoid(String goid) {
		this.goid = goid;
	}
	/**
	 * 获取商品数量 Integer number
	 * @param 
	 */
	public Integer getNumber() {
		return this.number;
	}
	/**
	 * 设置商品数量 Integer number
	 * @param number
	 */
	public void setNumber(Integer number) {
		this.number = number;
	}
	/**
	 * 获取收获地址 String address
	 * @param 
	 */
	public String getAddress() {
		return this.address;
	}
	/**
	 * 设置收获地址 String address
	 * @param address
	 */
	public void setAddress(String address) {
		this.address = address;
	}
	/**
	 * 获取订单状态 Integer orderstatus 0未付款1已付款2已发货3已收货   默认0
	 * @param 
	 */
	public Integer getOrderstatus() {
		return this.orderstatus;
	}
	/**
	 * 设置订单状态 Integer orderstatus 0未付款1已付款2已发货3已收货  默认0
	 * @param orderstatus
	 */
	public void setOrderstatus(Integer orderstatus) {
		this.orderstatus = orderstatus;
	}


	@Override
	public String toString() {
		return "Order [oid=" + oid + ", uid=" + uid + ", goid=" + goid
				+ ", number=" + number + ", address=" + address
				+ ", orderstatus=" + orderstatus + ", addtime=" + addtime + "]";
	}

	

}